package com.wave.spring.boot.plugs;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.stereotype.Component;

/**
 * Created by weibo.xwb on 2017/8/10.
 */
@Component
public class CanonCustomApplicationRunner implements ApplicationRunner {

    private static final Logger logger = LoggerFactory.getLogger(CanonCustomApplicationRunner.class);

    @Override
    public void run(ApplicationArguments args) throws Exception {
        logger.warn("Awesome! My ApplicationRunner worked!"+ args);
    }
}